<div class="topimg">
  <img align="center" src="/images/regist_img.png"/>
</div>
<div class="search">
  <h3>用户注册</h3>
<%= error_messages_for :user %>
<% form_for :user, :url => users_path do |f| -%>
<p><label for="login">用户名：</label>
<%= f.text_field :login %></p>

<p><label for="email">邮箱：</label>
<%= f.text_field :email %></p>

<p><label for="password">密码：</label>
<%= f.password_field :password %></p>

<p><label for="password_confirmation">密码确认：</label>
<%= f.password_field :password_confirmation %></p>
<p class="center"><%= image_submit_tag "regist_btn.png" %></p>
<% end -%>
</div>